//
//  CreatBottomView.m
//  OurMenu
//
//  Created by 尹坤 on 15/10/12.
//  Copyright © 2015年 尹坤. All rights reserved.
//

#import "CreatBottomView.h"

@implementation CreatBottomView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatMyView];
    }
    return self;
}
- (void)creatMyView
{
    self.seasonButton  = [UIButton buttonWithType:UIButtonTypeCustom];
    self.seasonButton.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    self.seasonButton.backgroundColor = [UIColor orangeColor];
    [self.seasonButton setImage:[UIImage imageNamed:@"labelImage.jpg"] forState:UIControlStateNormal];
    [self addSubview:self.seasonButton];
    
    self.seasonLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.seasonButton.frame.size.height - 40, self.frame.size.width, 40)];
    self.seasonLabel.backgroundColor = [UIColor grayColor];
    self.seasonLabel.alpha = 0.8;
    self.seasonLabel.text = @"     春季";
    [self addSubview:self.seasonLabel];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
